<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/><xsl:template match='/'><xsl:variable name="place_counter" select="count(/geonames/*)"/><places size="{$place_counter}"><xsl:apply-templates /></places></xsl:template><xsl:template match='geoname'><place><xsl:attribute name="id"><xsl:value-of select="geonameId" /></xsl:attribute><name><xsl:value-of select='name'/></name><longitude><xsl:value-of select='lng'/></longitude><latitude><xsl:value-of select='lat'/></latitude><countryCode><xsl:value-of select='countryCode'/></countryCode><countryName><xsl:value-of select='countryName'/></countryName><distance><xsl:value-of select='distance'/></distance><fClass><xsl:value-of select='fcl'/></fClass>		<fCode><xsl:value-of select='fcode'/></fCode></place></xsl:template></xsl:stylesheet>
